<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="ty" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE html>
<html lang="zh">
	<head>
		<%@ include file="../common/head.jsp" %>
		<title>管理系统管理员-后台管理系统</title>
	</head>
	<ty:right>
		<div class="row">
			<div class="col-xs-12">
				<div class="table-header">
					管理系统管理员
					<a class="btn btn-xs btn-warning" href="/add.action">
						<i class="ace-icon fa fa-plus bigger-120"></i>
						新增
					</a>
				</div>
				<div>
					<table id="sample-table-2" class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th class="center">
									<label class="position-relative">
										<input type="checkbox" class="ace" id="selectCheckBoxAllChk" objectChkName="${actionName}CheckBox" />
										<span class="lbl"></span>
									</label>
								</th>
								<th>编号</th>
							    <th>登陆名称</th>
							    <th>用户昵称</th>
							    <th>手机号码</th>
							    <th>创建时间</th>
							    <th>更新时间</th>
							    <th>操作</th>
							</tr>
						</thead>
						<tbody>
					  	<c:forEach var="c" items="${PAGE_KEY.data }" varStatus="st">
					  		<tr>
					  			<td class="center">
									<label class="position-relative">
										<input type="checkbox" class="ace" />
										<span class="lbl"></span>
									</label>
								</td>
							    <td class="text_align_center">${st.count }</td>
							    <td class="text_align_center">${c.username }</td>
							    <td class="text_align_center">${c.nickname }</td>
							    <td class="text_align_center">${c.phone }</td>
							    <td class="text_align_center"><fmt:formatDate value="${c.createTime }" pattern="yyyy-MM-dd"/></td>
							    <td class="text_align_center"><fmt:formatDate value="${c.modifyTime }" pattern="yyyy-MM-dd"/></td>
								<td>
									<a class="btn btn-xs btn-info" href="/resetPasswd.action?id=${c.id }">
										<i class="ace-icon fa fa-user bigger-120"></i>
										修改密码
									</a>
									<a class="btn btn-xs btn-success" href="/edit.action?id=${c.id }">
										<i class="ace-icon fa fa-pencil bigger-120"></i>
										编辑
									</a>
									<button class="btn btn-xs btn-danger singleRequest" value="${c.id }" url="${PATH }/delete.action" msg="你确定要删除吗">
										<i class="ace-icon fa fa-trash bigger-120"></i>
										删除
									</button>
							    </td>
							 </tr>
					  	</c:forEach>
						</tbody>
					</table>
					<jsp:include page="../common/page.jsp"></jsp:include>
				</div>
			</div>
		</div>
	</ty:right>
</html>